ui: Don't unnecessarily set GtkEntry:invisible-char
authorTimm Bäder <mail@baedert.org>
Wed, 5 Oct 2016 17:37:44 +0000 (19:37 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Oct 2016 16:17:21 +0000 (18:17 +0200)
gtk/ui/gtkcoloreditor.ui
gtk/ui/gtkfontchooserwidget.ui
gtk/ui/gtkprintunixdialog.ui
tests/testgtk.css
testsuite/gtk/cssprovider.c

index f0d7b8ea3c935a90b2f62c49fb4b0f1661354d6f..ecaf9fa8ea8eae86037b5a3f587d085640e94b2b 100644 (file)
@@ -58,7 +58,6 @@
               <object class="GtkEntry" id="entry">
                 <property name="visible">1</property>
                 <property name="can-focus">1</property>
-                <property name="invisible-char">•</property>
                 <child internal-child="accessible">
                   <object class="AtkObject" id="entry-atkobject">
                     <property name="AtkObject::accessible-name" translatable="yes">Color Name</property>
index 48786f1463a093dda5a8c6deea3b85555b1f7dc2..bb27c83887079ccb2e6e61f303bf2552904d995d 100644 (file)
                   <object class="GtkEntry" id="preview">
                     <property name="visible">1</property>
                     <property name="can-focus">1</property>
-                    <property name="invisible-char">•</property>
                     <property name="placeholder-text" translatable="yes">Preview text</property>
                     <signal name="scroll-event" handler="resize_by_scroll_cb" swapped="no"/>
                   </object>
                   <object class="GtkSpinButton" id="size_spin">
                     <property name="visible">1</property>
                     <property name="can-focus">1</property>
-                    <property name="invisible-char">•</property>
                     <property name="adjustment">spin_adjustment</property>
                     <signal name="output" handler="output_cb"/>
                   </object>
index f20305a58121beab082ebb4d8d6c0e446b2435f8..0d14d4095d64b836b87ea11c493f9ef66158a629 100644 (file)
                                     <property name="can-focus">1</property>
                                     <property name="tooltip-text" translatable="yes">Specify one or more page ranges,
  e.g. 1–3, 7, 11</property>
-                                    <property name="invisible-char">•</property>
                                     <property name="activates-default">1</property>
                                     <child internal-child="accessible">
                                       <object class="AtkObject" id="page_range_entry-atkobject">
                                     <property name="visible">1</property>
                                     <property name="can-focus">1</property>
                                     <property name="valign">baseline</property>
-                                    <property name="invisible-char">•</property>
                                     <property name="activates-default">1</property>
                                     <property name="adjustment">copies_spin_adjustment</property>
                                     <signal name="changed" handler="update_dialog_from_capabilities" object="GtkPrintUnixDialog" swapped="yes"/>
                                         <property name="visible">1</property>
                                         <property name="valign">baseline</property>
                                         <property name="can-focus">1</property>
-                                        <property name="invisible-char">•</property>
                                         <property name="adjustment">scale_spin_adjustment</property>
                                         <property name="digits">1</property>
                                       </object>
  e.g. 15∶30, 2∶35 pm, 14∶15∶20, 11∶46∶30 am, 4 pm</property>
                                 <property name="tooltip-text" translatable="yes" comments="Ability to parse the am/pm format depends on actual locale. You can remove the am/pm values below for your locale if they are not supported.">Specify the time of print,
  e.g. 15∶30, 2∶35 pm, 14∶15∶20, 11∶46∶30 am, 4 pm</property>
-                                <property name="invisible-char">•</property>
-                                <property name="invisible-char-set">1</property>
                                 <child internal-child="accessible">
                                   <object class="AtkObject" id="print_at_entry-atkobject">
                                     <property name="AtkObject::accessible-name" translatable="yes">Time of print</property>
index 3c5002ff05b099efdd6ba30f5835b4836c9a888d..262f4247d7ceb53ded3725c22b869d81e9c8aec9 100644 (file)
@@ -12,8 +12,6 @@
     -GtkToolbar-button-relief: none;
     -GtkButtonBox-child-min-width: 0;
     -GtkButtonBox-child-min-height: 0;
-    -GtkArrow-arrow-scaling: 1.0;
-    -GtkEntry-invisible-char: 10046;
 
     font-family: Sans;
     font-size: 12px;
index d3606bfe3a76c27af13710a023e04278ad15180d..e6381caf8d0ed1f5bb28bf866548ddc02238d3e8 100644 (file)
@@ -33,13 +33,13 @@ test_section_in_style_property (void)
   provider = gtk_css_provider_new ();
   g_signal_connect (provider, "parsing-error",
                     G_CALLBACK (assert_section_is_not_null), NULL);
-  gtk_css_provider_load_from_data (provider, "* { -GtkEntry-invisible-char: random garbage goes here; }", -1, NULL);
+  gtk_css_provider_load_from_data (provider, "* { -GtkWindow-decoration-button-layout: random garbage goes here; }", -1, NULL);
 
-  widget_class = g_type_class_ref (GTK_TYPE_ENTRY);
-  pspec = gtk_widget_class_find_style_property (widget_class, "invisible-char");
+  widget_class = g_type_class_ref (GTK_TYPE_WINDOW);
+  pspec = gtk_widget_class_find_style_property (widget_class, "decoration-button-layout");
   g_assert (pspec);
   path = gtk_widget_path_new ();
-  gtk_widget_path_append_type (path, GTK_TYPE_ENTRY);
+  gtk_widget_path_append_type (path, GTK_TYPE_WINDOW);
 
 G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
   gtk_style_provider_get_style_property (GTK_STYLE_PROVIDER (provider), path, 0, pspec, &value);